const searchUISchema = {
  "ui:col": 12,
  "ui:labelCol": {},
  "ui:wrapperCol": {},
};

const searchFormschema = {
  roleCode: {
    title: tr("角色代码"),
  },
  roleName: {
    title: tr("角色名称"),
  },
};
const columns = [
  {
    title: tr("角色代码"),
    width: 100,
    fieldName: "roleCode",
  },
  {
    title: tr("角色名称"),
    width: 100,
    fieldName: "roleName",
  },
  {
    title: tr("描述"),
    width: 550,
    fieldName: "roleDesc",
    valueFormatter: (params: any) => {
      const { value } = params;
      if (!value) return;
      return value.replace(/\n/g, "");
    },
  },
];

const nameKeys = {
  selectorEleKey: "roleSelectorElement",
  modalEleKey: "roleSelectorModalElement",
  dropDownEleKey: "roleSelectorDropDownElement",
};
export { searchUISchema, searchFormschema, columns, nameKeys };
